﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName="Custum/DataObject")]
public class DataObject : ScriptableObject
{
    [Header("Player")]
    public int MaxEnergy;
    public int MaxCarryItems = 3;

    public int successScore;
    public int scorePerDelivery;

    [System.Serializable]
    public struct OtakuLevelConfig
    {
        public int MaxDemandTolerance;
        public float ProbabilityFalloff;
        public int MinDemandInterval;
        public int MaxDemandInterval;
    }

    [Header("Villager")]
    public List<OtakuLevelConfig> otakuLevelConfigs;
    public int InitialDemandDelay = 10;

    public int GetOtakuLevelMax()
    {
        return otakuLevelConfigs.Count;
    }

    public OtakuLevelConfig GetOtakuLevelConfig(int otakuLevel)
    {
        return otakuLevelConfigs[otakuLevel];
    }


}
